projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57e1500
)
(ispell): If the buffer to spell has no associated file, or, the
author
Brian Fox
<bfox@gnu.org>
Mon, 25 Oct 1993 06:18:23 +0000
(06:18 +0000)
committer
Brian Fox
<bfox@gnu.org>
Mon, 25 Oct 1993 06:18:23 +0000
(06:18 +0000)
associated file has a special handler, use a temporary file with the
buffer contents to pass to the local ispell process.
lisp/textmodes/ispell4.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/ispell4.el
b/lisp/textmodes/ispell4.el
index f448ffe2f72c3c8251bb77b9a85552216b4c2dda..a4f55710ceb4cb7a011e67941044e2c08bd92439 100644
(file)
--- a/
lisp/textmodes/ispell4.el
+++ b/
lisp/textmodes/ispell4.el
@@
-273,7
+273,8
@@
q, \\[keyboard-quit] Leave the command loop. You can come back later with \\[is
(delete-temp nil))
(unwind-protect
(progn
- (cond ((null filename)
+ (cond ((or (null filename)
+ (find-file-name-handler buffer-file-name))
(setq filename (make-temp-name "/usr/tmp/ispell"))
(setq delete-temp t)
(write-region (point-min) (point-max) filename))